<template>
  <div>
  <keep-alive>
    <router-view v-if="$route.meta.KeepAlive"></router-view>
  </keep-alive>

  <router-view v-if="!$route.meta.KeepAlive"></router-view>
  </div>
</template>

<script>
import { mapMutations } from "vuex";
import FindHospital from "./components/FindHospital.vue";
export default {
  components: { FindHospital },
  methods: {
    ...mapMutations("user", ["getUserIn"]),
  },
  created() {
    this.getUserIn();
  },
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
}
</style>